package com.chuanke.ckfamily.service.finance;

import com.chuanke.ckfamily.dao.finance.model.FamilyDayIncome;
import com.chuanke.ckfamily.service.exception.CFException;
import com.weijie.core.IBaseBiz;

public interface FamilyDayIncomeService extends IBaseBiz<FamilyDayIncome> {

	/**
	 * 新收益
	 *
	 * @param uid
	 * @param money
	 * @throws Exception
	 */
	void addNewIncome(Long uid, Long money) throws CFException;

	/**
	 * 分配收益
	 *
	 * @param date
	 */
	void countIncome(String date) throws Exception;

	/**
	 * 查询家族日收益
	 * @param fanilyId fid
	 * @param tday 日期
	 * @return FamilyDayIncome
	 */
	FamilyDayIncome findByDate(Long fanilyId, String tday);

	/**
	 * 更新家族日收益表
	 */
	void updateFamilyDayIncome(FamilyDayIncome familyDayIncome, Long allMoney, Long leaderMoney, Long superMoney, Long redpacketMoney, Long bouns, Integer isAssign);

}